all: templatetest template_foreach

CPPFLAGS = -std=c++11 -g -O2
LIBS = -lpthread

%.o : %.cpp
	g++ $(CPPFLAGS) -c $< -o $@


templatetest: template_main.o
	g++ $^ -o templatetest $(LIBS)

template_foreach: template_foreach.o
	g++ $^ -o template_foreach $(LIBS)

.PHONY: clean
clean:
	rm -rf templatetest template_foreach *.o